package cz.acies.genea.data.gedcom.model;

public class ChildRef extends SpouseRef
{
	private ParentRelationship _frel = null;
	private ParentRelationship _mrel = null;

	public ParentRelationship getFatherRelationship() {
		return _frel;
	}

	public void setFatherRelationship(ParentRelationship frel) {
		this._frel = frel;
	}

	public ParentRelationship getMotherRelationship() {
		return _mrel;
	}

	public void setMotherRelationship(ParentRelationship mrel) {
		this._mrel = mrel;
	}

	public void accept(Visitor visitor) {
		if (visitor.visit(this)) {
			if (_frel != null) {
				_frel.accept(visitor, true);
			}
			if (_mrel != null) {
				_mrel.accept(visitor, false);
			}
			super.visitContainedObjects(visitor);
			visitor.endVisit(this);
		}
	}
}
